// 矩形弹框
<template>
  <Modal v-on:hidden="$emit('hidden')">
    <div class="rectangle">
      <!-- 弹窗点击关闭事件 -->
      <p><img src="../assets/img/polygon/07.png" alt="" class="imgBtn_close" @click="$emit('hidden')" /></p>
      <div class="modal_box flexC font_s34">
        <!-- 从父组件传递 title 值作为此组件的列表标题 -->
        <p class="colorF flexC AlignItemsC font_s27 title_bgImg">
          <span style="margin-top: 0.825rem;">浦东新区长护险协同监管大数据平台</span>
          <span style="color: #00FFFF;">-&nbsp;{{ title }}&nbsp;-</span>
        </p>
        <!-- 组件的内容主体 -->
        <div class="flex1"><slot></slot></div>
      </div>
    </div>
  </Modal>
</template>
<script>
import Modal from './Modal'
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  components: {
    Modal
  }
}
</script>
<style lang="scss" scoped>
.rectangle {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url(../assets/img/polygon/05.png) no-repeat;
  background-size: 100% 100%;
  .imgBtn_close {
    cursor: pointer;
    position: absolute;
    top: 3.6%;
    left: 2.5%;
    z-index: 99;
    width: 8%;
  }
  .bgImg_toptitle {
    width: 100%;
    position: absolute;
    z-index: 0;
  }
  .modal_box {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    font-weight: bold;
    font-family: Microsoft YaHei;
    .title_bgImg {
      width: 100%;
      height: 12.5%;
      background: url(../assets/img/polygon/06.png) no-repeat;
      background-size: 100% 100%;
    }
  }
}
</style>
